﻿using DAL;
using Model;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BLL
{
    public class AdminBLL
    {
        public DataTable Select(string TableName)
        {
            return new AdminDAL().Select(TableName);
        }
        public DataTable FY(string TableName, int YM)
        {
            return new AdminDAL().FY(TableName, YM);
        }
        public bool Add(UsersModel model)
        {
            return new AdminDAL().Add(model);
        }
        public bool Gai(UsersModel model, int id)
        {
            return new AdminDAL().Gai(model, id);
        }
        public UsersModel GetModelByID(string TableName, int id)
        {
            return new AdminDAL().GetModelByID(TableName, id);
        }
        public bool Del(string TableName, int id)
        {
            return new AdminDAL().Del(TableName, id);
        }

        public object SelectNo(string tableName, string mz)
        {
            return new AdminDAL().SelectNo(tableName, mz);
        }

        public DataTable LJA(string v1, string v2)
        {
            return new AdminDAL().LJA(v1,v2);
        }

        public DataTable SelectLJ(string tableOne, string tableTwo, string mz)
        {
            return new AdminDAL().SelectLJA(tableOne, tableTwo, mz);
        }

        public DataTable S(string tableOne, string tableTow, int pageIndex)
        {
            return new AdminDAL().S(tableOne, tableTow, pageIndex);
        }
    }
}
